window.onload = function() {
    var flag = 0;
    $("#all-match .fa-caret-down").on('click',function() {
        if(flag===0){
            $(".down-list").css("visibility","visible");
            flag++;
        }else {
            $(".down-list").css("visibility","hidden");
            flag--;            
        }
    });
}